using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Preparation;
using Tester.Forms;

namespace Tester.GuiActions.Actions.Impl
{
    public class ImportAppAction : BaseAction
    {
        public override bool Visible
        {
            get
            {
                return TesterMultyDocument.Instance != null && 
                    TesterMultyDocument.Instance.Suspended == TesterMultyDocument.SuspendStates.Stopped &&
                    TesterMainForm.Instance.TopControl == EmbededControlTags.TesterList;
            }
        }

        public override void MainAction(object sender, EventArgs e)
        {
            if (TesterMultyDocument.Instance != null)
            {
                ExportTests form = new ExportTests();
                form.ShowDialog();
            }
        }

    }
}
